package it11.Capood.DataLogic;


import java.util.Date;

public class FileMessage extends Message{
	
	private static final long serialVersionUID = 1L;
	private String name;

	private byte[] data;
	
	public FileMessage(String name, byte[] data){
		super(new Date(),Message.Type.FILE);
		this.name = name;

		this.data = data;
	}
	
	public byte[] getData() {
		return data;
	}
	
	public void setData(byte[] d) {
		data=d;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getSize(){
		return data.length;
	}
}
